<%-- 
    Document   : index
    Created on : 28/05/2014, 10:18:09 PM
    Author     : USER
--%>
<%@page import="feeds.RssItem"%>
<%@page import="java.util.Iterator"%>
<%@page import="feeds.RssFeed"%>
<%@page import="feeds.RssReader"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>

    <head>
        <title>InicioSesion</title>
        <meta name="description" content="website description" />
        <meta name="keywords" content="website keywords, website keywords" />
        <meta http-equiv="content-type" content="text/html; charset=windows-1252" />
        <link rel="stylesheet" type="text/css" href="style/style.css" />
    </head>

    <body>
        <div id="main">
            <div id="header">
                <div id="logo">
                    <div id="logo_text">

                        <h1>Empresa XYZ<span class="logo_colour"></span></a></h1>
                        <h2>Portal de Servicios.</h2>
                    </div>
                </div>
                <div id="menubar">
                    <ul id="menu">

                    </ul>
                </div>
            </div>
            <div id="content_header"></div>
            <div id="site_content">





                <div id="sidebar_container">
                    <div class="sidebar">
                        <div class="sidebar_top"></div>
                        <div class="sidebar_item">

                            <h3>Ultimas Noticias</h3>


                            <%
                                RssReader reader = new RssReader();
                                RssFeed rssFeed = reader.read("http://www.bbc.co.uk/mundo/ultimas_noticias/index.xml");
                                Iterator it = rssFeed.getItems().iterator();
                                while (it.hasNext()) {
                                    RssItem rssItem = (RssItem) it.next();
                            %> 

                            <h4><%= rssItem.getFecha()%></h4>
                            <p><%= rssItem.getTitle()%><br />
                                <a href="<%= rssItem.getLink()%>">Leer mas...</a></p>


                            <%
                                }
                            %>

                            

                        </div>
                        <div class="sidebar_base"></div>
                    </div>
                </div>



                <div id="content">

                    <h1>Inicio de Sesi&oacute;n</h1>
                    <p>&nbsp;</p>
                    <div class="form_settings">
                        <form id="form1" method="post" action="ServletEmpleado?accion=VerificarSesion">
                        <p><span>Usuario:</span>
                            <input class="contact" type="text" name="txt_usuario" value="" /></p>
                        <p><span>Contrase&ntilde;a:</span>
                            <input class="contact" type="password" name="txt_pass" value="" /></p>
                        <p>&nbsp;</p>
                        <p><span>&nbsp;</span>
                            <input class="submit" type="submit" name="btn_iniciar_sesion" value="Iniciar Sesi&oacute;n" />
                        </p>
                        </form>
                        
                    </div>       
                    <p><br /><br />
                    </p>
                </div>
            </div>
            <div id="content_footer"></div>
            <div id="footer">
                <p>||||</p>
                <p>Copyright &copy;</p>
            </div>
        </div>
    </body>
</html>